<#include "/common/head.ftl">

<html>

<head>
	<title>Score Report</title>
	
	<style>
		* {
			font-family: Arial;
			font-size: 11pt;
		}
		
		table {
			border: 1px solid black;
			border-left:none;
			border-top:none;
		}
		
		table tr td {
			border-left: 1px solid black;
			border-top: 1px solid black;
			width:2.8cm;
		}
	</style>
</head>

<body style="padding:0cm;padding-left:2.5cm;padding-right:2cm">

<#list members as offeringMember>

<div style="width:21cm;text-align:left;margin:0cm;padding:0px">

<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>

Issue Date (MM/DD/YY): ${(offering.issueDate?date)!}
</div>

<br/>

<center><span style="font-size:0.7cm;font-weight:bold">SCORE REPORT</span></center>

<br/><br/>
<p style="line-height:0.6cm">
Course: ${(offeringMember.receipt.offering.level.program.name)!} - ${(offeringMember.receipt.offering.level.courseName)!}
<br/>
Name: ${(UnicodeUtil.removeVietnamese(offeringMember.receipt.student.lastName))!} ${(UnicodeUtil.removeVietnamese(offeringMember.receipt.student.firstName))!}
<br/>
Date of Birth (MM/DD/YY): ${(offeringMember.receipt.student.dateOfBirth?date)!}
<br/>
Gender: ${(offeringMember.receipt.student.gender?capitalize)!}
<br/>
Telephone Number: ${(offeringMember.receipt.student.phoneNumber)!}
<br/>
</p>
Your performance on the test is reported in a score ranging from 0 to 100%
<br/><br/>
<table style="text-align:center" cellspacing="0" cellspadding="0.1cm">
	<tr>
		<td>Test Date<br/>(MM/DD/YY)</td>
		<td>Attendance</td>
		<td>Midterm Test</td>
		<td>Final Test</td>
		<td>Total Score</td>
	</tr>
	<tr>
		<td>${(offering.finalWrittenDate?date)!}</td>
		<td>${(offeringMember.convertedAttendanceScore)!'0'} / 10%</td>
		<td>${(offeringMember.midtermTest.convertedScore)!'0'} / 30%</td>
		<td>${(offeringMember.finalTest.total)!'0'} / 60%</td>
		<td>${(offeringMember.totalScore)!'0'} / 100%</td>
	</tr>
</table>

<p style="font-weight:bold;margin-top:1cm">Evaluation:</p>

<table cellspacing="0" cellspadding="0.1cm">
	<tr style="background-color:#D6FAEB; font-weight:bold">
		<td style="padding-left:0.3cm">Grade</td>
		<td style="padding-left:0.3cm;width:2cm">Score</td>
	</tr>
	<tr <#if (offeringMember.grade = 'A')>style="font-weight:bold"</#if>>
		<td style="padding-left:0.3cm">A-Excellent</td>
		<td style="padding-left:0.3cm;width:2cm">90-100%</td>
	</tr>
	<tr <#if (offeringMember.grade = 'B')>style="font-weight:bold"</#if>>
		<td style="padding-left:0.3cm">B-Very Good</td>
		<td style="padding-left:0.3cm;width:2cm">80-89%</td>
	</tr>
	<tr <#if (offeringMember.grade = 'C')>style="font-weight:bold"</#if>>
		<td style="padding-left:0.3cm">C-Good</td>
		<td style="padding-left:0.3cm;width:2cm">70-79%</td>
	</tr>
	<tr <#if (offeringMember.grade = 'D')>style="font-weight:bold"</#if>>
		<td style="padding-left:0.3cm">D-Fairly Good</td>
		<td style="padding-left:0.3cm;width:2cm">60-69%</td>
	</tr>
	<tr <#if (offeringMember.grade = 'E')>style="font-weight:bold"</#if>>
		<td style="padding-left:0.3cm">E-Average</td>
		<td style="padding-left:0.3cm;width:2cm">50-59%</td>
	</tr>
	<tr <#if (offeringMember.grade = 'F')>style="font-weight:bold"</#if>>
		<td style="padding-left:0.3cm">F-Failed</td>
		<td style="padding-left:0.3cm;width:2cm"><50%</td>
	</tr>
</table>
 
 <div style="padding-top:3.6cm">
 ...................................................................
 <br/>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Principal
 <br/>
 Nguyễn Thị Anh Thư  
 <br/>

</div>

 
<p style="page-break-after:always"/>

 </#list>
 
</body>
</html>